package com.itany.nmms.service;

import com.itany.nmms.entity.Staff;
import com.itany.nmms.exception.CodeErrorException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.StaffNotExistException;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/14 13:58
 * Version:1.0-SNAPSHOT
 */
public interface StaffService {

    /**
     * 员工登录
     * @param loginName
     * @param password
     * @param role
     * @param code
     * @param image
     * @return
     */
    public Staff login(String loginName, String password, String role, String code, String image) throws RequestParameterErrorException, CodeErrorException, StaffNotExistException;

    /**
     * 根据前台传递的条件进行查询
     * 若前台没有传递条件,则查询所有
     * @param staffParam
     * @return
     */
    public List<Staff> findByParams(Staff staffParam);
}
